package y_2025.m03.d21.t01;

// 梯形
public class Ladder {
    private double top, bottom, height;

    public Ladder(double top, double bottom, double height) {
        this.top = top;
        this.bottom = bottom;
        this.height = height;
    }

    // 求面积
    public double getArea() {
        return (top + bottom) * height / 2;
    }
}